<?php

namespace app\admin\model\shopro\goods;

use think\Model;
use traits\model\SoftDelete;
use fast\Tree;
use app\admin\model\shopro\activity\Activity;

class VipPrice extends Model
{

    use SoftDelete;

    // 表名
    protected $name = 'shopro_goods_vip_price';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';

    public function sku()
    {
        return $this->hasOne(Sku::class, 'goods_sku_id', 'id');
    }
}
